package user;

import book.BookList;
import operation.Ioperation;

public abstract class User {
 protected  String name;
 protected  Ioperation[] ioperations;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public abstract int meun();
    public void doOperation(BookList bookList,int choice) {
        Ioperation ioperation = this.ioperations[choice];
        ioperation.work(bookList);
    }
}
